# eric7.WebBrowser.GreaseMonkey.GreaseMonkeyDownloader

Module implementing the downloader for GreaseMonkey scripts.

### Global Attributes

None

### Classes

GreaseMonkeyDownloadType | Class defining the download types.
GreaseMonkeyDownloader | Class implementing the downloader for GreaseMonkey scripts.

### Functions

None

## GreaseMonkeyDownloadType

Class defining the download types.

### Derived from

enum.Enum

### Class Attributes

MainScript
RequireScript

### Class Methods

None

### Methods

None

### Static Methods

None

Up

## GreaseMonkeyDownloader

Class implementing the downloader for GreaseMonkey scripts.

### Signals

error()
  emitted to indicate a script download error
finished(fileName)
  emitted to indicate the end of a script download (str)

### Derived from

QObject

### Class Attributes

None

### Class Methods

None

### Methods

GreaseMonkeyDownloader | Constructor
__requireDownloaded | Private slot to handle the finished download of a required script.
__scriptDownloaded | Private slot to handle the finished download of a script.
updateScript | Public method to set the file name for the script to be downloaded.

### Static Methods

None

#### GreaseMonkeyDownloader (Constructor)

GreaseMonkeyDownloader(url, manager, mode)

Constructor

url (QUrl)
  URL to download script from
manager (GreaseMonkeyManager)
  reference to the GreaseMonkey manager
mode (GreaseMonkeyDownloadType)
  download mode

#### GreaseMonkeyDownloader.__requireDownloaded

__requireDownloaded()

Private slot to handle the finished download of a required script.

#### GreaseMonkeyDownloader.__scriptDownloaded

__scriptDownloaded()

Private slot to handle the finished download of a script.

#### GreaseMonkeyDownloader.updateScript

updateScript(fileName)

Public method to set the file name for the script to be downloaded.

fileName (str)
  file name for the script

Up